<%-- 
    Document   : editarAluno
    Created on : 28/09/2012, 00:00:57
    Author     : Natan
--%>
<%  String usuariolog = (String)session.getAttribute("usuario");
	if(usuariolog != null){
%>
<%@page language="java" contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Editar Usuário</title>
        <link  href="css/geral.css" rel="stylesheet" type="text/css" />
        <link rel="shortcut icon" href="favicon.ico" />
    </head>
    <body>
        <div id="tudo">
            
            <div id="cabecalho"> </div>
            
            <div id="menu">
                <jsp:include page="menuprincipal.jsp"></jsp:include>
            </div>
                  
            <div id="principal">
                <form action="manterUsuario.jsp" method="post">
                    <table align="center">
                        <thead>
                            <tr>
                                <th>Id</th>
                                <th>Usuário</th>
                                <th>Senha</th>
                                <th>Nível</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td> 
                                    <input type="hidden" name="id" value="<%=request.getParameter("id")%>"/> 
                                </td>
                                <td> 
                                    <input type="text" name="usuario" value="<%=request.getParameter("usuario")%>"/> 
                                </td>
                                <td> 
                                    <input type="text" name="senha" value="<%=request.getParameter("senha")%>"/> 
                                </td>
                                <td>
                                    <select name="nivel">
                                        <option value="<%=request.getParameter("nivel")%>"><%=request.getParameter("nivel")%></option>
                                        <option value="Aluno">Aluno</option>
                                        <option value="Professor">Professor</option>
                                        <option value="Supervisor">Supervisor</option>
                                    </select>
                                </td>
                                <input type="hidden" name="ac" value="atualizar"/>
                            </tr>
                        </tbody>
                    </table>
                                
                          
                    <table border="0" align="center">       
                        <tbody>        
                            <tr>  
                                <td><input type="submit" value="Atualizar" /></td>     
                            </tr>   
                        </tbody>
                    </table>

               </form>
           </div>
        </div>             
    </body>
</html>

<% }else{
	request.getRequestDispatcher("index.jsp").forward(request, response);
};%>